/*
* Copyright (C) 2012-2014 qar
* License: http://www.gnu.org/licenses/gpl.html GPL version 2
*/

#ifndef SIGNERNULL_H
#define SIGNERNULL_H

#include <QtCore>

#include "crypto/auth/signer.h"

class SignerNull : public Signer
{
public:
    SignerNull();
    virtual ~SignerNull();

    virtual qint64 hashSize() const;
    virtual QString getAlgorithmName() const;

    virtual void signSegment(const QByteArray &segment, QByteArray &signedSegment);
    virtual bool checkAndExtractSegment(const QByteArray &signedSegment, QByteArray &segment);

    // Serialization of parameters
    virtual bool toStream(QDataStream &s);
    virtual bool fromStream(QDataStream &s);

private:
    Q_DISABLE_COPY(SignerNull)
};

#endif // SIGNERNULL_H
